package com.springboot.mapper;

import com.springboot.bean.User;
import com.springboot.bean.UserInfo;
import com.springboot.bean.UserShoir;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zz
 * @version 1.0
 * @Description
 */
@Component
@Mapper
public interface UserMapper {
    List<User> selectAll();
    UserInfo selectUser(long id);
    int updateUser(UserInfo user);
    int deleteUser(String id);
    UserShoir findByUserName(String userName);
}
